Re-exports
Modules
- This is a helper module to make it a bit easier and regular for API callers to instantiate an Rng when calling sn_dbc methods that require them.
Structs
- An encrypted message.
- Represents a Digital Bearer Certificate (Dbc).
- A Builder for aggregating SpentProofs and generating the final Dbc outputs.
- Represents a one-time-use Owner key(pair).
- Represents a pair of base points for Pedersen commitments.
- A public key.
- A public key and an associated set of public key shares.
- A RevealedAmount is a plain text value and a blinding factor, which together can create a
BlindedAmount
. - A signature.
- A signature share.
- SpentProof’s are constructed when a DBC is logged to the spentbook.
- Represents the data to be signed by the SpentBook in a SpentProof.
- A share of a SpentProof, combine enough of these to form a SpentProof.
- Structure representing a Token amount.
- A builder to create a DBC transaction from inputs and outputs.
Enums
- Node error variants.
- Represents a Dbc owner.
Traits
- For the spent proofs to verify, the caller must provide an implementation of this trait which must have/know the pubkey of the spentbook section that signed each of the proofs.
Functions
- Get the blinded amounts for the transaction. They will be part of the spent proof share that is generated. In the process of doing so, we verify the correct set of spent proofs and transactions have been provided.
Type Definitions
- Represents a Dbc’s value.
- An amount that is blinded, by the means of a
Pedersen commitment
. - a BlindingFactor
- Specialisation of
std::Result
.